import request from '@/utils/request'

//获取所有栏目
export function getColumnData(params) {
	return request({
		method: "get",
		url: "sysWebColumn/query",
		params
	});
}

//新增栏目
export function addedColumn(data) {
	return request({
		method: "post",
		url: "sysWebColumn/add",
		data
	});
}

//修改栏目
export function updateColumn(data) {
	return request({
		method: "post",
		url: "sysWebColumn/update",
		data
	});
}

//删除栏目
export function deleteColumn(id) {
	return request({
		method: "get",
		url: "sysWebColumn/delete/" + id
	});
}

//获取栏目详情
export function columnDetail(id) {
	return request({
		method: "get",
		url: "sysWebColumn/query/" + id
	});
}

//批量删除栏目
export function batchDeleteColumn(data) {
	return request({
		method: "post",
		url: "sysWebColumn/deleteBatch",
		data
	});
}